package com.project.user.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.project.common.base.BaseEntity;

import java.util.List;

/**
 * 订单列表 user_order
 *
 * @author administrator
 * @date 2021-02-23
 */
public class UserOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    private Long orderId;
    /**
     * 状态4待发货1待收货2已收货3已评价5已取消
     */
    private Integer status;
    /**
     * 下单时间
     */
    private String createTime;
    /**
     * 用户编号
     */
    private Long userId;
    /**
     * 总价
     */
    private Double totalPrice;
    /**
     * 收货地址
     */
    private String receiveAddr;
    /**
     * 收货人
     */
    private String receiveUser;
    /**
     * 收货人电话
     */
    private String receiveTel;
    /*配送人信息*/
    private String courierNumber;
    /*退货备注*/
    private String refundRemark;
    /**
     * 订单明细
     */
    private List<UserOrderDetail> details;

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setReceiveAddr(String receiveAddr) {
        this.receiveAddr = receiveAddr;
    }

    public String getReceiveAddr() {
        return receiveAddr;
    }

    public void setReceiveUser(String receiveUser) {
        this.receiveUser = receiveUser;
    }

    public String getReceiveUser() {
        return receiveUser;
    }

    public void setReceiveTel(String receiveTel) {
        this.receiveTel = receiveTel;
    }

    public String getReceiveTel() {
        return receiveTel;
    }

    public List<UserOrderDetail> getDetails() {
        return details;
    }

    public void setDetails(List<UserOrderDetail> details) {
        this.details = details;
    }

    public String getCourierNumber() {
        return courierNumber;
    }

    public void setCourierNumber(String courierNumber) {
        this.courierNumber = courierNumber;
    }

    public String getRefundRemark() {
        return refundRemark;
    }

    public void setRefundRemark(String refundRemark) {
        this.refundRemark = refundRemark;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("orderId", getOrderId())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("userId", getUserId())
                .append("totalPrice", getTotalPrice())
                .append("receiveAddr", getReceiveAddr())
                .append("receiveUser", getReceiveUser())
                .append("receiveTel", getReceiveTel())
                .toString();
    }

    public UserOrder(Long orderId, Integer status) {
        this.orderId = orderId;
        this.status = status;
    }

    public UserOrder() {
    }
}
